package acceptance;

import junit.framework.Assert;

/**
 * @author tests for registration
 *
 */
public class RegisterTest extends ProjectTest
{


	/**
	 * tests when username already exists
	 */
	public void testUserNameExistsRegister()
	{
		Assert.assertTrue("new username", this._bridge.register("moshe", "1111"));
		Assert.assertFalse("username already exists", this._bridge.register("moshe", "1111"));

	}

	/**
	 * tests correct registration
	 */
	public void testCorrectRegister()
	{
		Assert.assertTrue("registered correctly", this._bridge.register("dani", "1234"));
		Assert.assertTrue("registered correctly", this._bridge.register("yosi", "2222"));
	}
}
